package com.github.pig.admin.service.zhgl.notification.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.zhgl.notification.NotificationUserMapper;
import com.github.pig.admin.model.zhgl.notification.NotificationUser;
import com.github.pig.admin.service.zhgl.notification.NotificationUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 活动用户关联表 服务实现类
 * </p>
 *
 * @author xiaosa
 * @since 2018-07-17
 */
@Service
public class NotificationUserServiceImpl extends ServiceImpl<NotificationUserMapper, NotificationUser> implements NotificationUserService {
    @Autowired
    private NotificationUserMapper notificationUserMapper;

    @Override
    public Page getNotificationUserList(Page<NotificationUser> page, NotificationUser notificationUser) {
        List<NotificationUser> result = notificationUserMapper.getNotificationUserList(page,notificationUser);
        page.setRecords(result);
        return page;
    }
}
